<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="/styles/general.css"/>
<link rel="stylesheet" type="text/css" href="/styles/main.css" />
<link rel="stylesheet" type="text/css" href="/styles/validator.css"></link>
<script src="/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/js/formValidator.js" type="text/javascript"></script>
<script src="/js/formValidatorRegex.js" type="text/javascript"></script>
<script type="text/javascript"> 
$(document).ready(function(){
	$.formValidator.initConfig({formid:"myform",onerror:function(msg){alert(msg)}});
	$("#field").formValidator({onshow:"请输入字段名",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#name").formValidator({onshow:"请输入字段别名",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	//$("#tips").formValidator({onshow:"请输入提示信息",onfocus:"请至少要输入2个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:2,onerror:"长度不正确,请确认"});
	//$("#css").formValidator({onshow:"请输入样式",onfocus:"请至少要输入2个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:2,onerror:"长度不正确,请确认"});
	//$("#minlength").formValidator({onshow:"请输入最小长度",onfocus:"请至少要输入2个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:2,onerror:"长度不正确,请确认"});
	//$("#maxlength").formValidator({onshow:"请输入最大长度",onfocus:"请至少要输入2个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:2,onerror:"长度不正确,请确认"});
	//$("#pattern").formValidator({onshow:"请输入正则表达式",onfocus:"请至少要输入2个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:2,onerror:"长度不正确,请确认"});
	//$("#errortips").formValidator({onshow:"请输入错误提示",onfocus:"请至少要输入2个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:2,onerror:"长度不正确,请确认"});
	$("#listorder").formValidator({onshow:"请输入排序",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
});
</script>
<title></title>
</head>
<body>
<h1>
<span class="action-span"><a href="/category">管理模型字段</a></span>
<span class="action-span1">修改模型字段 </span>
<div style="clear:both"></div>
</h1>
<div class="main-div">
  <form action="/modelfield/modify/modelid/{$modelid}" method="post" name="myform" id="myform" enctype="multipart/form-data">
  <input name='fieldid' id='fieldid' type="hidden" value="$fieldid" /> 
  <table width="100%" id="general-table">
       <tr>
        <td class="label">字段名：</td>
        <td>
        	{form hidden * field field $info['field']}
         	{$info['field']}
        </td>
        <td><div id='fieldTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">字段别名：</td>
        <td>
        	{form text * name name $info['name']}
        </td>
        <td><div id='nameTip' style="width:250px"></div></td>
      </tr>
      <!-- 
      <tr>
        <td class="label">提示信息：</td>
        <td>
        	{form text * tips tips $info['tips']}
        </td>
        <td><div id='tipsTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">样式名：</td>
        <td>
        	{form text * css css $info['css']}
        </td>
        <td><div id='cssTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">最小长度：</td>
        <td>
        	{form text * minlength minlength $info['minlength']}
        </td>
        <td><div id='minlengthTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">最大长度：</td>
        <td>
        	{form text * maxlength maxlength $info['maxlength']}
        </td>
        <td><div id='maxlengthTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">正则表达式：</td>
        <td>
        	{form text * pattern pattern $info['pattern']}
        </td>
        <td><div id='patternTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">错误提示：</td>
        <td>
        	{form text * errortips errortips $info['errortips']}
        </td>
        <td><div id='errortipsTip' style="width:250px"></div></td>
      </tr>
      -->
      <tr>
        <td class="label">排序：</td>
        <td>
       		{form text * listorder listorder $info['listorder']}
        </td>
        <td><div id='listorderTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">表单类型：</td>
        <td>
        	{form select * formtype formtype $info['formtype'] * *  $modelfieldtype}
        </td>
        <td><div id='formtypeTip' style="width:250px"></div></td>
      </tr>
	  <tr>
        <td class="label">选项或默认值：</td>
        <td>
        	{form textarea * defaultvalue defaultvalue $info['defaultvalue']}
        </td>
        <td><div id='formtypeTip' style="width:250px"></div></td>
      </tr>
      <!-- 
      <tr>
        <td class="label">是否为搜索条件：</td>
        <td>
        	{form radio * issearch issearch $info['issearch']}
        </td>
        <td><div id='issearchTip' style="width:250px"></div></td>
      </tr>
            <tr>
        <td class="label">是否默认读取：</td>
        <td>
        	{form radio * isselect isselect $info['isselect']}
        </td>
        <td><div id='isselectTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">在列表页显示：</td>
        <td>
       		{form radio * islist islist $info['islist']}
        </td>
        <td><div id='islistTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">在内容页显示：</td>
        <td>
        	{form radio * isshow isshow $info['isshow']}
        </td>
        <td><div id='isshowTip' style="width:250px"></div></td>
      </tr>
      -->
      <tr>
        <td class="label">是否全文搜索：</td>
        <td>
        	{form radio * isfulltext isfulltext $info['isfulltext']}
        </td>
        <td><div id='isfulltextTip' style="width:250px"></div></td>
      </tr>
   </table>
  
   <div class="button-div">
        <input type="submit" value="&nbsp;确&nbsp;定&nbsp;" />
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="reset" value="&nbsp;重&nbsp;置&nbsp;" />
   </div>
      
  </form>
</div>
{template 'footer.html'}
</body>
</html>
